package com.lsh.oms.api.model.other;

import com.lsh.oms.api.model.order.OrderHeadDTO;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class OrderRoHeadDto implements Serializable{

    private static final long serialVersionUID = -7789887734362818713L;

    private Long id;

    private Long returnOrderId;

    private Long fOrderId;

    private Integer type;

    private Integer isMp;

    private Long uid;

    private Long addressId;

    private String province;

    private String city;

    private String county;

    private String area;

    private String warehouseId;

    private String warehouseName;

    private Long orderId;

    private Long shippingOrderId;

    private Integer status;

    private BigDecimal skuCount;

    private BigDecimal realSkuCount;

    private BigDecimal money;

    private Integer activedAt;

    private Integer returnAt;

    private Integer isValid;

    private Integer createdAt;

    private Integer updatedAt;

    private Integer returnType;

    private Integer itemType;

    private Integer zoneId;

    private Integer storageTypeId;

    private Integer orderFrom;

    private BigDecimal costMoney;

    private String soReturnId;

    private BigDecimal costNtMoney;

    private Integer returnNote;

    private Integer passAt;

    private Integer returnOrderType;

    private Long tmsId;

    private String ext;
    
    private List<OrderRoDetailDto> details;


    public OrderRoHeadDto() {
		super();
	}
    public OrderRoHeadDto(OrderHeadDTO oh) {
		this.orderId = oh.getOrderCode();
		this.fOrderId =0L;
		this.type = oh.getOrderType();
		this.isMp = oh.getIsMp();
		this.uid = oh.getUserCode();
		this.addressId = oh.getAddressCode();
		this.province = oh.getProvince()+"";
		this.city = oh.getCity()+"";
		this.county = oh.getDistrict()+"";
		this.area = oh.getArea()+"";
		this.warehouseId = "";//TODO
		this.warehouseName ="";//TODO
		this.orderId = oh.getOrderCode();
		this.shippingOrderId = 0L;//TODO
		this.status = 0;//TODO
		this.skuCount = BigDecimal.ZERO;//TODO
		this.realSkuCount = oh.getGoodsTotalQuantity();
		this.money = oh.getExpectPayAmount();
		this.activedAt = oh.getUpdateTime();
		this.returnAt = oh.getUpdateTime();
		this.isValid = oh.getValid();
		this.createdAt = oh.getUpdateTime();
		this.returnType = 1;
		this.itemType = 10;// 写死
		this.zoneId = oh.getRegionCode();
     	this.storageTypeId = 2;
     	this.orderFrom = 1;
     	this.costMoney = BigDecimal.ZERO;
     	this.soReturnId = null;
     	this.costNtMoney = BigDecimal.ZERO;
     	this.returnNote = 1;
     	this.passAt = 0;
     	this.returnOrderType = 1;
     	this.tmsId = 0L;
     	this.ext ="";
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getReturnOrderId() {
        return returnOrderId;
    }

    public void setReturnOrderId(Long returnOrderId) {
        this.returnOrderId = returnOrderId;
    }

    public Long getfOrderId() {
        return fOrderId;
    }

    public void setfOrderId(Long fOrderId) {
        this.fOrderId = fOrderId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsMp() {
        return isMp;
    }

    public void setIsMp(Integer isMp) {
        this.isMp = isMp;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county == null ? null : county.trim();
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId == null ? null : warehouseId.trim();
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName == null ? null : warehouseName.trim();
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getShippingOrderId() {
        return shippingOrderId;
    }

    public void setShippingOrderId(Long shippingOrderId) {
        this.shippingOrderId = shippingOrderId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getSkuCount() {
        return skuCount;
    }

    public void setSkuCount(BigDecimal skuCount) {
        this.skuCount = skuCount;
    }

    public BigDecimal getRealSkuCount() {
        return realSkuCount;
    }

    public void setRealSkuCount(BigDecimal realSkuCount) {
        this.realSkuCount = realSkuCount;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Integer getActivedAt() {
        return activedAt;
    }

    public void setActivedAt(Integer activedAt) {
        this.activedAt = activedAt;
    }

    public Integer getReturnAt() {
        return returnAt;
    }

    public void setReturnAt(Integer returnAt) {
        this.returnAt = returnAt;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Integer createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Integer updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getReturnType() {
        return returnType;
    }

    public void setReturnType(Integer returnType) {
        this.returnType = returnType;
    }

    public Integer getItemType() {
        return itemType;
    }

    public void setItemType(Integer itemType) {
        this.itemType = itemType;
    }

    public Integer getZoneId() {
        return zoneId;
    }

    public void setZoneId(Integer zoneId) {
        this.zoneId = zoneId;
    }

    public Integer getStorageTypeId() {
        return storageTypeId;
    }

    public void setStorageTypeId(Integer storageTypeId) {
        this.storageTypeId = storageTypeId;
    }

    public Integer getOrderFrom() {
        return orderFrom;
    }

    public void setOrderFrom(Integer orderFrom) {
        this.orderFrom = orderFrom;
    }

    public BigDecimal getCostMoney() {
        return costMoney;
    }

    public void setCostMoney(BigDecimal costMoney) {
        this.costMoney = costMoney;
    }

    public String getSoReturnId() {
        return soReturnId;
    }

    public void setSoReturnId(String soReturnId) {
        this.soReturnId = soReturnId == null ? null : soReturnId.trim();
    }

    public BigDecimal getCostNtMoney() {
        return costNtMoney;
    }

    public void setCostNtMoney(BigDecimal costNtMoney) {
        this.costNtMoney = costNtMoney;
    }

    public Integer getReturnNote() {
        return returnNote;
    }

    public void setReturnNote(Integer returnNote) {
        this.returnNote = returnNote;
    }

    public Integer getPassAt() {
        return passAt;
    }

    public void setPassAt(Integer passAt) {
        this.passAt = passAt;
    }

    public Integer getReturnOrderType() {
        return returnOrderType;
    }

    public void setReturnOrderType(Integer returnOrderType) {
        this.returnOrderType = returnOrderType;
    }

    public Long getTmsId() {
        return tmsId;
    }

    public void setTmsId(Long tmsId) {
        this.tmsId = tmsId;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext == null ? null : ext.trim();
    }

	public List<OrderRoDetailDto> getDetails() {
		return details;
	}

	public void setDetails(List<OrderRoDetailDto> details) {
		this.details = details;
	}
    
    
}